package com.fengdi.everyday.easy;

import java.util.ArrayList;
import java.util.List;

public class FindWordsContaining {
    public List<Integer> findWordsContaining(String[] words, char x) {
        ArrayList<Integer> list = new ArrayList<>();

        for(int i = 0; i < words.length; i++) {
            if(words[i].contains(Character.toString(x))) {
                list.add(i);
            }
        }

        return list;
    }
}
